<?php
use yii\helpers\Url;
$tab_list=[
    'edit'=>[
        'title'=>'信息编辑',
        'url'=>Url::to(['user/edit']),
    ],
    'pwd'=>[
        'title'=>'修改密码',
        'url'=>Url::to(['user/rest-pwd']),
    ],
];
?>
<div class="row  border-bottom">
    <div class="col-lg-12">
        <div class="tab_title">
            <ul class="nav nav-pills">
                <?php foreach($tab_list as $_current=>$val):?>
                <li <?php if($current==$_current):?> class="current" <?php endif;?> >
                    <a href="<?php echo $val['url'];?>"><?php echo $val['title'];?></a>
                </li>
                <?php endforeach;?>
            </ul>
        </div>
    </div>
</div>